﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using WebApp.ConfigEntity;

namespace WebApp.Services
{
    public class DbConnectionConfigurationServicecs
    {
        private readonly IOptions<DbConnectionConfiguration> _dbConfig;
        public DbConnectionConfigurationServicecs(IOptions<DbConnectionConfiguration> dbConfig)
        {
            _dbConfig = dbConfig;
        }

        public DbConnectionConfiguration DbConnection => _dbConfig.Value;
    }
}
